package com.qf.proxy;

import com.qf.service.FangDongService;
import com.qf.service.FangDongServiceImpl;

/**
 * projectName: wokepase1
 *
 * @author: 强力
 * time: 2021/8/30 11:34
 * description:中介
 */
public class ZhongJieProxy  implements FangDongService {

    private  FangDongService fangDongService =new FangDongServiceImpl();
    @Override
    public void zuFang() {
    //添加辅助功能
        System.out.println("发布租房信息");
        System.out.println("中介带租客看房");
    //核心=原始业务类功能
        fangDongService.zuFang();

        //添加辅助功能
        System.out.println("中介替房东维护");
        System.out.println("中介替房东干大部分事");
    }

    public static void main(String[] args) {
        ZhongJieProxy proxy=new ZhongJieProxy();
        proxy.zuFang();

    }
}
